package office.action.business.form;

import office.bo.business.impl.Supplier;
import platform.common.bo.IIdentifiableObj;
/**
 * 产品明细对应的Form
 * @author ZhangYQ
 *
 */
public class SupplierForm {
	private String id;
	private String supplierType; //类型     
	private String factoryName;//厂家名称
	private String mainProduct;//主要产品
	private String address;//地址 
	private String linkMan;//联系人
	private String telePhone;//电话
	private String phone;//手机
	private String fax;//传真
	private String email;//邮箱
	
	public IIdentifiableObj copyPropertiesToBO(IIdentifiableObj newObj) {
		Supplier bo = (Supplier)newObj;
		bo.setId(this.id);
		bo.setSupplierType(supplierType);
		bo.setFactoryName(factoryName);
		bo.setMainProduct(mainProduct);
		bo.setAddress(address);
		bo.setLinkMan(linkMan);
		bo.setTelePhone(telePhone);
		bo.setPhone(phone);
		bo.setFax(fax);
		bo.setEmail(email);
		return bo;
	}
	
	public void copyPropertiesFromBO(IIdentifiableObj baseBO) {
		Supplier bo = (Supplier)baseBO;
		this.id = bo.getId().toString();
		this.supplierType = bo.getSupplierType();
		this.factoryName = bo.getFactoryName();
		this.mainProduct = bo.getMainProduct();
		this.address = bo.getAddress();
		this.linkMan = bo.getLinkMan();
		this.telePhone = bo.getTelePhone();
		this.phone = bo.getPhone();
		this.fax = bo.getFax();
		this.email = bo.getEmail();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFactoryName() {
		return factoryName;
	}

	public void setFactoryName(String factoryName) {
		this.factoryName = factoryName;
	}

	public String getMainProduct() {
		return mainProduct;
	}

	public void setMainProduct(String mainProduct) {
		this.mainProduct = mainProduct;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLinkMan() {
		return linkMan;
	}

	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}

	public String getTelePhone() {
		return telePhone;
	}

	public void setTelePhone(String telePhone) {
		this.telePhone = telePhone;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getSupplierType() {
		return supplierType;
	}

	public void setSupplierType(String supplierType) {
		this.supplierType = supplierType;
	}
	
}
